/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Peer.peerRequest;

import Peer.KoTorrentInt;

/**
 *
 * @author user
 */
public class blockRequest {
    public KoTorrentInt len;
    public final byte id = 6;
    public KoTorrentInt index;
    public KoTorrentInt begin;
    public KoTorrentInt length;

     public blockRequest(int idx, int begin, int length){
         len = new KoTorrentInt(13);
         this.index = new KoTorrentInt(idx);
         this.begin = new KoTorrentInt(begin);
         this.length = new KoTorrentInt(length);
     }
}
